package com.xmut.mall.coupon.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmut.mall.coupon.entity.CouponActivityEntity;
import com.xmut.mall.coupon.searchparams.CouponActivitySearchParam;
import com.xmut.mall.coupon.vo.ManagerCouponActivityPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CouponActivityDao extends BaseMapper<CouponActivityEntity> {

    /**
     * 获取官方管理后台的券活动的分页数据
     * @param initPage
     * @param param
     * @return
     */
    IPage<ManagerCouponActivityPageVo> getManagerCouponActivityPage(Page<Object> initPage,@Param("param") CouponActivitySearchParam param);
}
